调用方法说明

方法描述 方法名 传入参数 返回参数
取得流程详细信息 getWorkflowRequest Int requestid请求id
Int userid用户id
Int fromrequestid从相关id的工作流过来
WorkflowRequestInfo流程信息

示例代码

/**
* 获得流程的详细信息
* @param requestid
* @throws RemoteException
*/

public static void getRequestInfo(int requestid,int userid) throws RemoteException{
WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowServicePortTypeProxy(url);
WorkflowRequestInfo WorkflowRequestInfo = WorkflowServicePortTypeProxy.getWorkflowRequest(requestid, userid, 0);//调用接口获取对应requestid的数据
//流程基本信息
System.out.println("===============================流程基本(workflow_requestbase)信息================================");
System.out.println("getCreatorId: "+WorkflowRequestInfo.getCreatorId());
System.out.println("getCreatorName: "+WorkflowRequestInfo.getCreatorName());
System.out.println("getRequestName: "+WorkflowRequestInfo.getRequestName());
System.out.println("getCreateTime: "+WorkflowRequestInfo.getCreateTime());
System.out.println("getCurrentNodeId: "+WorkflowRequestInfo.getCurrentNodeId());
System.out.println("getCurrentNodeName: "+WorkflowRequestInfo.getCurrentNodeName());
System.out.println("getStatus: "+WorkflowRequestInfo.getStatus());

System.out.println("===============================流程workflow_base信息=============================================");
WorkflowBaseInfo WorkflowBaseInfo = WorkflowRequestInfo.getWorkflowBaseInfo();
System.out.println("getWorkflowId: "+WorkflowBaseInfo.getWorkflowId());
System.out.println("getWorkflowName: "+WorkflowBaseInfo.getWorkflowName());

System.out.println("===============================流程主字段信息====================================================");
WorkflowMainTableInfo WorkflowMainTableInfo = WorkflowRequestInfo.getWorkflowMainTableInfo();
WorkflowRequestTableRecord WorkflowRequestTableRecord[] = WorkflowMainTableInfo.getRequestRecords();
if(WorkflowRequestTableRecord!=null){
WorkflowRequestTableField WorkflowRequestTableFields[] = WorkflowRequestTableRecord[0].getWorkflowRequestTableFields();
System.out.println("字段个数:"+WorkflowRequestTableFields.length);
for(int i=0;i<WorkflowRequestTableFields.length;i++){
WorkflowRequestTableField WorkflowRequestTableField = WorkflowRequestTableFields[i];
System.out.println("字段:"+(i+1));
System.out.println("getFieldName:"+WorkflowRequestTableField.getFieldName());
System.out.println("getFieldValue:"+WorkflowRequestTableField.getFieldValue());//原始值
System.out.println("getFieldShowName:"+WorkflowRequestTableField.getFieldShowName());
}
}

System.out.println("===============================流程明细信息======================================================");
WorkflowDetailTableInfo WorkflowDetailTableInfo[] = WorkflowRequestInfo.getWorkflowDetailTableInfos();
if(WorkflowDetailTableInfo!=null){
for(int i=0;i<WorkflowDetailTableInfo.length;i++){
WorkflowRequestTableRecord = WorkflowDetailTableInfo[i].getWorkflowRequestTableRecords();
System.out.println("明细表"+(i+1));
System.out.println("明细表行数"+WorkflowRequestTableRecord.length);
for(int j=0;j<WorkflowRequestTableRecord.length;j++){
System.out.println("***********************************第"+(j+1)+"行***************************************");
WorkflowRequestTableField WorkflowRequestTableFields[] = WorkflowRequestTableRecord[j].getWorkflowRequestTableFields();
for(int k=0;k<WorkflowRequestTableFields.length;k++){
WorkflowRequestTableField WorkflowRequestTableField = WorkflowRequestTableFields[k];
System.out.println("字段:"+(k+1));
System.out.println("getFieldName:"+WorkflowRequestTableField.getFieldName());
System.out.println("getFieldValue:"+WorkflowRequestTableField.getFieldValue());//原始值
System.out.println("getFieldShowName:"+WorkflowRequestTableField.getFieldShowName());
}
}
}
}

System.out.println("===============================签字意见======================================================");
WorkflowRequestLog WorkflowRequestLogs[] = WorkflowRequestInfo.getWorkflowRequestLogs();
if(WorkflowRequestLogs!=null){
System.out.println("签字意见条数:"+WorkflowRequestLogs.length);
for(int i=0;i<WorkflowRequestLogs.length;i++){
WorkflowRequestLog WorkflowRequestLog = WorkflowRequestLogs[i];
System.out.println("***********************************第"+(i+1)+"行***************************************");
System.out.println("getNodeId:"+WorkflowRequestLog.getNodeId());
System.out.println("getNodeName:"+WorkflowRequestLog.getNodeName());
System.out.println("getOperateDate:"+WorkflowRequestLog.getOperateDate());
System.out.println("getOperateTime:"+WorkflowRequestLog.getOperateTime());
System.out.println("getOperateType:"+WorkflowRequestLog.getOperateType());

System.out.println("getId:"+WorkflowRequestLog.getId());
System.out.println("getOperatorDept:"+WorkflowRequestLog.getOperatorDept());//操作人部门名称
System.out.println("getOperatorName:"+WorkflowRequestLog.getOperatorName());//操作人名称
System.out.println("getOperatorId:"+WorkflowRequestLog.getOperatorId());//操作人id
System.out.println("getReceivedPersons:"+WorkflowRequestLog.getReceivedPersons());
System.out.println("getRemark:"+WorkflowRequestLog.getRemark());
}
}
}

调用接口实现的方法,执行输出返回对象的值

返回参数说明

WorkflowRequestInfo 详细信息参见创建流程接口4.2.4 创建流程doCreateWorkflowRequest中描述